package com.constant;

import cn.hutool.core.collection.CollUtil;
import io.jsonwebtoken.Claims;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 通用常量信息
 *
 * @author mvasoft
 */
public class Constants {
    /**
     * 地址
     */
    public static final String RRSLJ = "http://fw.rrslj.com/";
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 通用成功标识
     */
    public static final String SUCCESS = "0";

    /**
     * 通用失败标识
     */
    public static final String FAIL = "1";

    /**
     * 登录成功
     */
    public static final String LOGIN_SUCCESS = "Success";

    /**
     * 注销
     */
    public static final String LOGOUT = "Logout";

    /**
     * 注册
     */
    public static final String REGISTER = "Register";

    /**
     * 登录失败
     */
    public static final String LOGIN_FAIL = "Error";

    /**
     * 验证码有效期（分钟）
     */
    public static final Integer CAPTCHA_EXPIRATION = 2;

    /**
     * 令牌
     */
    public static final String TOKEN = "token";

    /**
     * 令牌前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";

    /**
     * 令牌前缀
     */
    public static final String LOGIN_USER_KEY = "login_user_key";

    /**
     * 用户ID
     */
    public static final String JWT_USERID = "userid";

    /**
     * 用户名称
     */
    public static final String JWT_USERNAME = Claims.SUBJECT;

    /**
     * 用户头像
     */
    public static final String JWT_AVATAR = "avatar";

    /**
     * 创建时间
     */
    public static final String JWT_CREATED = "created";

    /**
     * 用户权限
     */
    public static final String JWT_AUTHORITIES = "authorities";

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

    /**
     * RMI 远程方法调用
     */
    public static final String LOOKUP_RMI = "rmi:";

    /**
     * LDAP 远程方法调用
     */
    public static final String LOOKUP_LDAP = "ldap:";

    /**
     * LDAPS 远程方法调用
     */
    public static final String LOOKUP_LDAPS = "ldaps:";

    /**
     * 定时任务白名单配置（仅允许访问的包名，如其他需要可以自行添加）
     */
    public static final String[] JOB_WHITELIST_STR = {"com.mvasoft"};

    /**
     * 定时任务违规的字符
     */
    public static final String[] JOB_ERROR_STR = {"java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml",
            "org.springframework", "org.apache", "com.mvasoft.common.utils.file"};

    /**
     * 淘宝接口签名算法使用
     */
    public static final String SIGN_METHOD_MD5 = "md5";
    public static final String SIGN_METHOD_HMAC = "hmac";
    public static final String CHARSET_UTF8 = "utf-8";
    public static final String CONTENT_ENCODING_GZIP = "gzip";
    public static final String FORMAT = "json";
    public static final String V = "2.0";

    /**
     * 淘宝接口key
     */
    public static final String APP_KEY = "33460099";
    public static final String APP_SECRET = "5a564139a18c98902c007fad29715a62";
    public static final String SESSION_KEY = "61015018019c5586db15ebaac1c936d0fc209ee79fa3a342214087736031";
    public static final String GROUP_NAME = "default";

    /**
     * 淘宝接口地址
     */
    public static final String TAOBAO_SERVER_URL = "http://gw.api.taobao.com/router/rest";//HTTP地址
    public static final String TAOBAO_SERVER_URL_HTTPS = "https://eco.taobao.com/router/rest";//HTTPS地址
    /**
     * 淘宝接口 名称
     */
    public static final String TAOBAO_METHOD_INCREMENT = "taobao.trades.sold.increment.get";//查询卖家已卖出的增量交易数据（根据修改时间）
    public static final String TAOBAO_METHOD_FULLINFO = "taobao.trade.fullinfo.get";//获取单笔交易的详细信息
    public static final String TAOBAO_METHOD_DECRYPT = "taobao.top.oaid.decrypt";//解码OAID(Open Addressee ID)，返回收件人信息
    public static final String TAOBAO_METHOD_INVOICE_AMOUNT = "taobao.trade.invoice.amount.get";//获取开票金额
    public static final String TAOBAO_METHOD_LOGISTICS_OFFLINE_SEND = "alibaba.ascp.logistics.offline.send";//自己联系物流（线下物流）发货
    public static final String TAOBAO_METHOD_ADDRESS = "taobao.logistics.address.search";//查询卖家地址库
    public static final String TAOBAO_METHOD_CONSIGN = "alibaba.ascp.logistics.consign.resend";//修改物流公司和运单号
    public static final String ALIBABA_EINVOICE_APPLY_GET = "alibaba.einvoice.apply.get";//开票申请数据获取接口
    public static final String TAOBAO_METHOD_REFUNDS_RECEIVE = "taobao.refunds.receive.get";//查询卖家收到的退款列表
    public static final String TAOBAO_METHOD_REFUND = "taobao.refund.get";//获取单笔退款详情
    public static final String TAOBAO_METHOD_DUMMY_SEND = "taobao.logistics.dummy.send";//无需物流（虚拟）发货处理
    /**
     * 淘宝订单状态
     * todo 必须按顺序添加，不得插序
     */
    public static final String[] TAOBAO_ORDER_STATE = {"WAIT_SELLER_SEND_GOODS", "TRADE_FINISHED"};//淘宝订单状态
    /**
     * 淘宝增量交易数据返回字段
     */
    public static final String TAOBAO_RETURN_FIELD = "tid,payment,post_fee,receiver_name,receiver_state,receiver_address,receiver_mobile,receiver_phone,received_payment,receiver_town,num_iid,status,pay_time,modified,end_time,buyer_message,buyer_memo,receiver_city,receiver_district,seller_nick,buyer_nick,alipay_no,refund_status,outer_iid,oid,status,price,num_iid,num,outer_sku_id,total_fee,payment,discount_fee,adjust_fee,refund_id,end_time,divide_order_fee,part_mjz_discount,orders";//定义接口返回字段
    public static final String TAOBAO_RETURN_FIELD_REFUNDS_RECEIVE = "refunds,tid,oid,refund_id,total_fee,buyer_nick,seller_nick,created,modified,order_status,status,good_status,has_good_return,refund_fee,payment,reason,desc,title,company_name,sid,refund_phase,refund_version,sku,attribute,outer_id,operation_contraint,ouid,buyer_open_uid";//定义接口返回字段
    /**
     * 淘宝收货人解密
     */
    public static final String TAOBAO_SCENE = "1006";//解密场景编号。不同场景，解密策略不同。可选的场景：1001(顺丰电子面单发货)、1002(4通一达电子面单发货)、1003(EMS电子面单发货)、1004(其他电子面单发货)、1005(线下门店发货)、1006(手工单发货)、1007(代发货)、2001(客户售后服务)、2002(客户关怀)、3001(奇门)

    /**
     * 错误码说明及解决方案
     */
    public static final Map<String, Object> ERROR_CODE_DESCRIPTION;

    public static final Map<Integer, Long> INVOICE_TYPE;

    public static final Map<String, String> JYLX_MAP;        //交易类型

    public static final Map<String, String> PAY_TYPE;

    public static final Map<String, String> attribute2Map;//数据来源

    public static final Map<String, String> LIFNR_MAP;        //供应商编码


    /**
     * 支付宝接口地址
     */
    public static final String ALIPAY_SERVER_URL = "https://openapi.alipay.com/gateway.do";

    /**
     * 支付宝接口key
     */
    public static String APP_ID = "2021003150628300";
    public static String PRIVATE_KEY = "MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCD3nxd3ZlPIxokICU29WOYayXAscr79IC0ZixgB4LpVhsXc/Zpv2utzeena67VJEoQV63IcuaJNKNa3sryoh1Piccpy+keGph9RNHByKKSno1nq91Lei9wCg9zx4qdee+L4iwN8Vo6DY00nmy36SlDUxudXAQelC538/BqA6WxoMzVUIbEcdn0rvpgR00g4W/qeufU3rHZPfB9B0VILPS5GTKfNve+PwydOpC7rJCi4s8xMRrNusyxnGmX/WWCTZrHLAkcqeJrixiUvHo52OG7RqlXb5Zj8KJ/nENBXR2v4Em2KgHrQwaEVuaZ6RpCynWvVpeV6lM1w4ZdYo5VgU7FAgMBAAECggEALsB7cT/2caMtSm+HIiP/ynL6cIXYRFmcI9kxlF41YIqhkkAPtdAi2fztS2MXGgQCqiabuzxZVX2vCLGCXGFzaNadIMllfcHKHGeAwmZilP7XfVDmZTMNjHhUoCS3lTs83WgzXEIcTgat8GDWhKGKeo8FdFXCNCEvFGIM81kVrpKkll+iKGYvDm5oZRZSNmNbDKoUWTqCdVed25/y99CXj59oh2dIQZuizhsWC5LWkT0+CzvcSEX6Opd/hKrbDRZqbsaDpdS6GEiWQzW/4GVfVM1ODFCyRne1ve2HGXgaa4DX9fBGSQLLBTS3swJjQM2+DrLIKpukKm4xEMWF4uUVIQKBgQC9GhKzFD5NmZhrzf/bguE8n3vjXWMuTUSudp+wbrNTpt5/Z5tTnBFLqFexVDl0dBqpcgcQsdGStGVtyo85kEtdG+yuk/LVRLsF5GLgP5bliRUXWViwHOjMzgdFX7B+rzH4TuMRct2exCyRuVZEFt4tceIdxw+jJCWHA0fVhSh/6QKBgQCyhScDmsdkVQjA4m/ovAd6dQRRICgOmAPumFltj/rU3SJyta/73rTfSqaD4eoZ96DmEbutzMckisZ3zoGIfCgU3iDoGUa5oAYWaka6F9Dg+BFBrTAoLztwqfRlJBZ1u+0z7AosYd0dLoi+oTKop5k4ViAwz3Zckx3/XQdVkkXKfQKBgDq0MmPnf+PlL70fyTLi8Xs5Y2NU5WpFUHH8n1xNMVxhrCbPChgtlezvyLFjHSb6uCAsJudW3GF3oRkxTb8n/U1dUt9rTHJKkOimWs+UzgpZwPNrqC2b++VAfF9b8lWRm6ijDLio+QXFjrR6Xb5rfvOKrBBkcIVLvl6odQ9i9AypAoGAT6B0tnbjWS1UqjRWFklITKbFNipRs7C6kEIEIYqHJ0s7gk7oIEBGDRMPEuRBtzNs4TIntG4SpYoA3I+P14EJn8U0iFI96a4nCPh+c6ML2EzN5a2KPWJT8Pzdtf9SxVD9jJtMLl+4cLvA4sakAfY/sZE46oyfDsvQJYcpLlIAL0ECgYAamesQHII99QaJjKGTLmSbs0wkQu3vFo/lyFFxBIIPYKjvQJO2lvLl3zWdAYTQilIPHpsGJZFYeUjtsRHRjdJK0yvw0vR3o2P7bixEbB7Vd24OW74GAWXr5b3J4AFe9+rsMfU7lrMgT+00Qc/dzcMPwEb5WOBvYAYGCd2aY2yvoQ==";
    public static String ALIPAY_PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnicUAc2ctIQx5NL6b0/3Ahpw/gnQIf0D6aS3EaWJqsxXR30bW4xPNHyhbY8FuzqfUcoC8Fx8ruLFehuzLAsCIhDd0Q/wcbFNHBItVQOg1ZuLlgbM2L9dOnonUL3uUQc8sBQFE4LA/29aQGOCtJRaEM176xkormq/xxfwFB1iDC3KBDKaoxoLkRbyfmSLsjU4kCscR0gBh2+uRhKnCMt+HnG1q2X+358LcvMONLmX0ZMAR7Yx4rN9u8qTb328C8HTEVXspiTPqcbYrjOofqdtnt9V1Uep/y3WIrcexK/9uHKxctsbARpuRMgzWsmhnO0lSuOvREZ8IwFYddV8Hu27hQIDAQAB";

    /**
     * 支付宝接口 名称
     */
    public static final String ALIPAY_METHOD_BILL_SELL_QUERY = "alipay.data.bill.sell.query";

    //出账公司编码
    public static final String BUKRS_0RK0 = "0RK0";//日日顺科技服务（上海）有限公司
    public static final String BUKRS_0LC0 = "0LC0";//日日顺科技服务有限公司


    //数据库中发票种类 0专用发票 1普通发票 3电子发票
    public static final Long SPECIAL_INVOICE = 0L;
    public static final Long PLAIN_INVOICE = 1L;
    public static final Long ELECTRONIC_INVOICE = 3L;

    static {
        ERROR_CODE_DESCRIPTION = new HashMap<>();
        ERROR_CODE_DESCRIPTION.put("isv.invalid-parameter", ErrorCodeExplanation.PARAMETER_ERROR);
        ERROR_CODE_DESCRIPTION.put("isp.system-error", ErrorCodeExplanation.SYSTEM_ERROR);
        ERROR_CODE_DESCRIPTION.put("isv.apply-not-exists", ErrorCodeExplanation.APPLICATION_DOES_NOT_EXIST);
        ERROR_CODE_DESCRIPTION.put("isp.isp-system.error", ErrorCodeExplanation.SYSTEM_ERROR);
        ERROR_CODE_DESCRIPTION.put("isv.invalid-permission", ErrorCodeExplanation.PERMISSION_ERROR);
        ERROR_CODE_DESCRIPTION.put("isv.invalid-platform-serial_no", ErrorCodeExplanation.INVALID_PLATFORM_SERIAL_NUMBER);
        ERROR_CODE_DESCRIPTION.put("isv.itemNo-not-found", ErrorCodeExplanation.TAX_CLASSIFICATION_CODE_NOT_FOUND);
        ERROR_CODE_DESCRIPTION.put("isv.invoice-success", ErrorCodeExplanation.INVOICED_SUCCESSFULLY);
        ERROR_CODE_DESCRIPTION.put("isv.invoice-waiting", ErrorCodeExplanation.INVOICING_IN_PROGRESS);
        ERROR_CODE_DESCRIPTION.put("isv.user-arrears", ErrorCodeExplanation.TAX_NUMBER_ARREARS);
        ERROR_CODE_DESCRIPTION.put("isv.unit-expire", ErrorCodeExplanation.EXPIRATION_OF_TAX_CONTROL_UNIT);
        ERROR_CODE_DESCRIPTION.put("isv.user-not-register", ErrorCodeExplanation.THE_USER_IS_A_RESIDENT_OF_ALIBABA_INVOICE_PLATFORM);
        ERROR_CODE_DESCRIPTION.put("isv.invalid-tid", ErrorCodeExplanation.INVALID_ORDER_NUMBER);
        ERROR_CODE_DESCRIPTION.put("isv.invalid-supplier", ErrorCodeExplanation.INVALID_VENDOR);

        //0=电子发票，1=纸质发票，2=专票
        INVOICE_TYPE = new HashMap<>();
        INVOICE_TYPE.put(0,Constants.ELECTRONIC_INVOICE);
        INVOICE_TYPE.put(1,Constants.PLAIN_INVOICE);
        INVOICE_TYPE.put(2,Constants.SPECIAL_INVOICE);


        JYLX_MAP = new HashMap<String, String>();
        JYLX_MAP.put("41", "1");
        JYLX_MAP.put("alipay", "1");
        JYLX_MAP.put("wxpay_1260561201", "2");
        JYLX_MAP.put("wxpay_1348352201", "H");
        JYLX_MAP.put("wxpay_1251462801", "F");
        JYLX_MAP.put("wxpay_1521875591", "O");
        JYLX_MAP.put("wxpay_1330737901", "G");
        JYLX_MAP.put("wxpay_1399822802", "2");
        JYLX_MAP.put("wxpay_1507800261", "I");
        JYLX_MAP.put("wxpay_1502545431", "I");
        JYLX_MAP.put("wxpay_1514971951", "I");
        JYLX_MAP.put("wxpay_1497260142", "2");
        JYLX_MAP.put("nbjsd", "5");
        JYLX_MAP.put("internal", "5");
        JYLX_MAP.put("dh", "6");
        JYLX_MAP.put("kjt", "4");
        JYLX_MAP.put("balance", "9");
        JYLX_MAP.put("balpay", "9");
        JYLX_MAP.put("2", "F1");
        JYLX_MAP.put("wxpay_1566283331", "2");
        JYLX_MAP.put("wxpay_1574576351", "U");
        JYLX_MAP.put("unionpay_105053289990257", "T");
        JYLX_MAP.put("upay_QRA4526539807PT", "Q");
        JYLX_MAP.put("unionpay_105053289990259", "R");
        JYLX_MAP.put("unionpay_105053289990260", "S");
        JYLX_MAP.put("wxpay_1595827061", "2");
        JYLX_MAP.put("tppay", "5"); // 顺逛使用
        JYLX_MAP.put("wxpay_1543447381", "2");
        JYLX_MAP.put("wxpay", "2"); // 桩联网使用
        JYLX_MAP.put("wxpay_1514801381", "2");//0LC0 桩联网

        PAY_TYPE = new HashMap<String, String>();
        PAY_TYPE.put("41", "支付宝");
        PAY_TYPE.put("alipay", "支付宝");
        PAY_TYPE.put("wxpay", "微信");
        PAY_TYPE.put("wxpay_1260561201", "微信");
        PAY_TYPE.put("wxpay_1348352201", "微信134");
        PAY_TYPE.put("wxpay_1330737901", "微信133");
        PAY_TYPE.put("wxpay_1251462801", "微信125");
        PAY_TYPE.put("wxpay_1521875591", "微信152");
        PAY_TYPE.put("wxpay_1507800261", "微信150");
        PAY_TYPE.put("wxpay_1502545431", "微信150");
        PAY_TYPE.put("wxpay_1514971951", "微信150");
        PAY_TYPE.put("wxpay_1399822802", "微信");
        PAY_TYPE.put("wxpay_1497260142", "微信");
        PAY_TYPE.put("wxpay_1566283331", "微信");
        PAY_TYPE.put("wxpay_1574576351", "微信157");
        PAY_TYPE.put("wxpay_1595827061", "微信");
        PAY_TYPE.put("wxpay_1543447381", "微信");
        PAY_TYPE.put("wxpay_1514801381", "微信");
        PAY_TYPE.put("unionpay_105053289990257", "银联257");
        PAY_TYPE.put("upay_QRA4526539807PT", "银联-扫码");
        PAY_TYPE.put("unionpay_105053289990259", "银联259");
        PAY_TYPE.put("unionpay_105053289990260", "银联260");
        PAY_TYPE.put("kjt", "快捷通");
        PAY_TYPE.put("dh", "电汇");
        PAY_TYPE.put("nbjsd", "内部结算单");
        PAY_TYPE.put("internal", "内部结算单");
        PAY_TYPE.put("balpay", "会员充值&使用");
        PAY_TYPE.put("balance", "会员充值&使用");
        PAY_TYPE.put("tppay", "内部结算单"); // 顺逛使用

        attribute2Map = new HashMap<String, String>();
        attribute2Map.put("alipay", "zhangfan@rrslj.com");
        attribute2Map.put("41", "zhangfan@rrslj.com");
        attribute2Map.put("wxpay_1260561201", "1260561201@1260561201");
        attribute2Map.put("wxpay_1348352201", "1348352201@1348352201");
        attribute2Map.put("wxpay_1330737901", "1330737901@1330737901");
        attribute2Map.put("wxpay_1251462801", "1251462801@1251462801");
        attribute2Map.put("wxpay_1521875591", "1521875591@1521875591");
        attribute2Map.put("wxpay_1399822802", "1260561201@1260561201");
        attribute2Map.put("wxpay_1507800261", "1507800261@1507800261");
        attribute2Map.put("wxpay_1502545431", "1507800261@1507800261");
        attribute2Map.put("wxpay_1514971951", "1507800261@1507800261");
        attribute2Map.put("wxpay_1497260142", "1497260142@1497260142");
        attribute2Map.put("wxpay_1566283331", "1566283331@1566283331");
        attribute2Map.put("wxpay_1574576351", "1574576351@1574576351");
        attribute2Map.put("kjt", "k04l00102@kjtpay.com.cn");
        attribute2Map.put("balpay", "");
        attribute2Map.put("balance", "");
        attribute2Map.put("unionpay_105053289990257", "105053289990257");
        attribute2Map.put("upay_QRA4526539807PT", "QRA4526539807PT");
        attribute2Map.put("unionpay_105053289990259", "105053289990259");
        attribute2Map.put("unionpay_105053289990260", "105053289990260");
        attribute2Map.put("wxpay_1595827061", "1595827061@1595827061");
        attribute2Map.put("tppay", ""); // 顺逛使用
        attribute2Map.put("wxpay_1543447381", "1543447381@1543447381");
        attribute2Map.put("wxpay_1514801381", "1514801381@1514801381");

        LIFNR_MAP = new HashMap<String, String>();
        LIFNR_MAP.put("alipay", "V9011291");
        LIFNR_MAP.put("alipay_scan", "V9067879");
        LIFNR_MAP.put("wxpay", "V9013147");
        LIFNR_MAP.put("kjt", "V98809");
        LIFNR_MAP.put("unionpay", "V9022024");
        LIFNR_MAP.put("upay", "V9022024");

    }

    /**
     * 任务状态
     */
    public static final Integer JOB_STATUS_NORMAL = 0;
    public static final Integer JOB_STATUS_RUNNING = 1;
    public static final Integer JOB_STATUS_PAUSE = 2;


    /**
     * 订单类型
     */
    public static final String Z_STRING = "Z";
    public static final String N_STRING = "N";
    public static final String EMPTY_STRING = "";
    public static final String PLUS_STRING = "+";
    public static final String Y_STRING = "Y";

    /**
     * 业务系统和业务类型编码
     */

    public static final String COLLECTION = "TBYW01,TBYW04,TBYW05";
    public static final String INVOICE = "TBYW02";
    public static final String ESTIMATION = "TBYW03";


    /**
     * 淘宝订单号开票类型
     */
    public static final String BUY = "buy";
    public static final String TB = "tb";
    public static final String ZFB = "zfb";
    public static final String JFB = "jfb";

    /*单据模式 start*/
    public static final String SOURCEMODE_CX = "10";//采销
    public static final String SOURCEMODE_PT = "20";//平台

    /*激励类型 start*/
    public static final String POSITIVE_EXCITATION = "10";//正激励
    public static final String NEGATIVE_EXCITATION = "20";//负激励

    /*SAP交互类型
     * SAP交互类型：SK：收款，SR：发票记收，ZG：暂估，ZG_ZJL：正激励暂估，ZG_FJL：负激励暂估*/
    public static final String SK = "SK";//收款
    public static final String SR = "SR";//发票记收
    public static final String ZG = "ZG";//暂估
    public static final String ZG_ZJL = "ZG_ZJL";//正激励暂估
    public static final String ZG_FJL = "ZG_FJL";//负激励暂估

    public static final String MONEY_CNY = "CNY";//人民币

    /*字典类型*/
    public static final String SYS_TB_YWLX = "sys_tb_ywlx";//淘宝业务业务模式
    public static final String SYS_TB_YWLX_HB = "sys_tb_ywlx_hb";//淘宝业务业务模式  红包
    public static final String HAIER88_CODE = "haier88_code";//淘宝业务业务模式  红包

    /*总帐科目/客户/供应商*/
    public static final String ZFB_88CODE = "8800043400";//8800043400支付宝(中国)网络技术有限公司88码
    public static final String ZFB_VCODE = "V9061563";//V9061563支付宝(中国)网络技术有限公司V码
    public static final String JFB_88CODE = "8800049299";//8800049299集分宝南京企业管理有限公司
    public static final String TB_88CODE = "8800042638";//8800042638 浙江天猫技术有限公司 淘宝红包 客户编码88码
    public static final String AEH = "AEH";//AEH 临时88码 淘宝红包 客户编码88码

    public static final String PROFIT_CENTRE = "0000860003";//主营业务收入的 利润中心

    /*第三方税率*/
    public static final BigDecimal ZFB_TAXRATE = new BigDecimal("0.06");//惠营宝税率6%
    public static final BigDecimal TB_TAXRATE = new BigDecimal("0.06");//天猫佣金、返点积分、聚划算佣金税率6%
    public static final BigDecimal JFB_TAXRATE = new BigDecimal("0.13");//集分宝税率是13%

    public static final String MALL_ZLW_PAY_FROM = "wxpay_1543447381";// 桩联网 0RK0 新流程  后续等乐家财务流程走完后 更新第一个流程代码 目前暂时做到原流程中
    public static final String MALL_ZLW_PAY_FROM_QD = "wxpay_1514801381";// 桩联网 0LC0 新流程

    /*交易类型 start*/
    public static final String TRADE_ALI = "alipay";
    public static final String TRADE_MIXALIPAY = "mixalipay";
    public static final String TRADE_WX = "wxpay";
    public static final String TRADE_MIXWXPAY = "mixwxpay";
    public static final String TRADE_KJT = "kjt";
    public static final String TRADE_BAL = "balpay";
    public static final String TRADE_SERV_BAL = "balance";//服务订单余额支付
    public static final String TRADE_RCCARDPAY = "rccardpay";
    public static final String TRADE_DH = "dh";
    public static final String TRADE_INTERNAL = "internal";
    public static final String TRADE_UNIONPAY = "unionpay";
    public static final String TRADE_UPAY = "upay";// 银联扫码
    public static final String TRADE_NCDPAY = "ncdpay";// 滤芯用 内采单
    public static final String TRADE_GDGPAY = "gdgpay";// 滤芯用 公对公打款


    /*导入结算类型*/
    public static final String  HCSP_TB_YWMS = "TBYW03";

    /**
     * 淘宝记账定时任务 开票前的节点名称
     */
    public static List<String> BEFORE_INVOICING_TASK = CollUtil.newArrayList("SCTB_ZZTB_Z_GEN_SAP",
            "SCTB_ZZTB_Z_PUSH_QUERY_SAP",
            "SCTB_ZZTB_Z_GEN_INVOICE",
            "SCTB_ZZTB_Z_REQ_INVOICE");

    //商户通对账接口
    public static final String SHT_URL = "http://cvp4test.haier.net/ecs/data/push/dataAccess";

    /**
     * 财务定时任务执行状态
     */
    public static final String TASK_SUCCESS = "success";
    public static final String TASK_FINISHED = "finished";
    public static final String TASK_FAIL = "fail";
    public static final String TABLE_FINISHED_TASK_CODE = "finishedTaskCode";
}
